package com.naizhuai.Model.db.search;

import com.naizhuai.Model.db.user.PersonUserBean;
import com.naizhuai.Model.db.user.UserDataSourse;

import java.util.List;

/**
 * @author：lichenxi
 * @date 2018/2/27 19
 * email：525603977@qq.com
 * Fighting
 */
public interface SearchDataSourse {

    interface GetSearchCallback {

        void onUserLoaded(SearchHistoryBean search);

        void onSearchDataArray(List<SearchHistoryBean> beans);

        void onDataNotAvailable();
    }

    void getUserAsyn(String sid,GetSearchCallback callback);

    void searchUserLimit(int limit, GetSearchCallback callback);

    void saveSearchData(SearchHistoryBean search);


    void deleteSearchData(SearchHistoryBean bean);


}
